package com.pureut.system.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.system.domain.MaterialCertificationDetail;
import com.pureut.system.domain.dto.MaterialCertificationDetailDto;
import com.pureut.system.mapper.MaterialCertificationDetailMapper;
import com.pureut.system.service.IMaterialCertificationDetailService;
import org.apache.catalina.security.SecurityUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Author: pureut
 * @Date: 2024-12-04 18:56:12
 * @Desc: 物料认证明细
 */
@Service("materialCertificationDetailService")
public class MaterialCertificationDetailServiceImpl extends ServiceImpl<MaterialCertificationDetailMapper, MaterialCertificationDetail> implements IMaterialCertificationDetailService {

    /**
     * 物料认证明细Dao
     */
    @Resource
    private MaterialCertificationDetailMapper materialCertificationDetailMapper;

    /**
     * 根绝认证id查询 所有明细
     * @param id
     */
    @Override
    public List<MaterialCertificationDetailDto> getListByPid(Long id){
        return materialCertificationDetailMapper.getListByPid(id);
    }
}
